import http from '../../utils/http'

export const createRole = (input) => http.post('/cms/role', input)
export const getRoles = (params) => http.get('/cms/role', { params })
export const updateRole = (input) => http.put('/cms/role', input)
export const deleteRoles = (list) => http.delete('/cms/role', { data: { roleIdList: list } })
